import defaultSettings from "@/settings";

export default function setPageTitle(pageTitle: string): void {
  if (pageTitle) {
    document.title = `${pageTitle} - ${defaultSettings.title}`;
  } else {
    document.title = `${defaultSettings.title}`;
  }
}
